import axios from '@/libs/request/axios'
// 多条件分页获取产品贴息来源方案
export const getSourceRuleInfoList = (params) => {
    return axios.request({
        url: '/product/productDiscountSource/getSourceRuleInfoList',
        data: params,
        method: 'post'
    })
}
export const queryAtomsByBizType = (params) => {
    return axios.request({
        url: '/product/productDiscountSource/queryAtomsByBizType',
        data: params,
        method: 'post'
    })
}
// 贴息来源方案生效
export const effectiveDiscountPlan = (ids, params) => {
    return axios.request({
        url: `/product/productDiscountSource/effectiveDiscountPlan/${ids}`,
        data: params,
        method: 'post'
    })
}
// 保存贴息来源
export const saveSource = (params) => {
    return axios.request({
        url: '/product/productDiscountSource/saveSource',
        data: params,
        method: 'post'
    })
}
// 删除贴息来源方案
export const delById = (id, params) => {
    return axios.request({
        url: `/product/productDiscountSource/delById/${id}`,
        data: params,
        method: 'delete'
    })
}
